package com.xdb.sqlparser.dialect.mysql.ast.statement;

import com.xdb.sqlparser.dialect.mysql.ast.statement.MySqlSelectQueryBlock.Limit;
import com.xdb.sqlparser.dialect.mysql.visitor.MySqlASTVisitor;

public class MySqlShowErrorsStatement extends MySqlStatementImpl implements MySqlShowStatement {

	private boolean count = false;
	private Limit limit;

	public boolean isCount() {
		return count;
	}

	public void setCount(boolean count) {
		this.count = count;
	}

	public Limit getLimit() {
		return limit;
	}

	public void setLimit(Limit limit) {
		this.limit = limit;
	}

	public void accept0(MySqlASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, limit);
		}
		visitor.endVisit(this);
	}
}
